﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.APP
{
    public class Votes
    {
        #region Fields
        /// <summary>
        /// 投票数量
        /// </summary>
        private int count;
        /// <summary>
        /// 投票数量
        /// </summary>
        public int Count
        {
            get { return count; }
            //set { count = value; }
        }
        /// <summary>
        /// 新闻Id
        /// </summary>
        private decimal newsId;
        #endregion Fields

        #region Constructor
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="newsVoteCount">数量</param>
        public Votes(decimal newsId,int newsVoteCount)
        {
            this.newsId = newsId;
            this.count = newsVoteCount;
        }
        #endregion Constructor

        /// <summary>
        /// 增加投票
        /// </summary>
        /// <param name="voteBasic">投票库中的投票</param>
        /// <param name="deadline">新截止时间</param>
        public int Add(VoteBasic voteBasic, DateTime? deadline)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 去除一个投票
        /// </summary>
        /// <param name="voteBasic">投票库中的投票</param>
        public int Delete(VoteBasic voteBasic)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 去除一个投票
        /// </summary>
        /// <param name="voteId">投票Id</param>
        public int Delete(decimal voteId)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 获得所有投票
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        public static List<Vote> GetAllVotes(decimal newsId)
        {
            throw new System.NotImplementedException();
        }
    }
}
